	<style>
	.ui-autocomplete-loading { background: white url('http://jqueryui.com/demos/autocomplete/images/ui-anim_basic_16x16.gif') right center no-repeat; }
	</style>
	<script>
	$(function() {
		var cache = {},
			lastXhr;
		$( "#title" ).autocomplete({
			minLength: 2,
			source: function( request, response ) {
				var term = request.term;
				if ( term in cache ) {
					response( cache[ term ] );
					return;
				}

				lastXhr = $.getJSON( "_javascript/ajax_searchuser.php", request, function( data, status, xhr ) {
					cache[ term ] = data;
					if ( xhr === lastXhr ) {
						response( data );
					}
				});
			}
		});
	});
	</script>

<form method="post">
	{foreach from=$value item=item}
	<article class="module width_full">
		<header><h3>{#reports#}: {$item.status}</h3></header>
		<div class="module_content">
			<fieldset>
				<label>{#title#}</label>
				<input type="text" id="title" name="username_banned" value="{$item.title}"  readonly>
			</fieldset>
			<fieldset>
				<label>{#reason#}</label>
				<textarea rows="10" name="message" style="width:95%;" readonly>
{#user#} {$item.username} | {#player#} {$item.player}

{$item.reason}
</textarea>
			</fieldset>
			<div class="clear"></div>
		</div>
		<footer>
			<div class="submit_link">
				<a href="index.php?mod=report&page=answer&id={$item.id}"><input type="button" value="{#add#}" name="submit" class="alt_btn"></a>
			</div>
		</footer>
	</article>
	{/foreach}
</form>
<article class="module width_full">
	<header><h3>{#report#}</h3></header>
	<div class="module_content">
		{if !empty($rep_value)} 
			{foreach from=$rep_value item=item}
				<fieldset>
					<label>{$item.username} {#wrote#}:{$item.title}</label>
					<div class="clear"></div>
					<div style="padding:5px;">
					{$item.message}
					</div>
				</fieldset>
				<div class="clear"></div>
			{/foreach}
		{/if}
	</div>
</article>

